package bz.yfw.example.s3blazeds.part2.behavior
{
	import bz.yfw.example.s3blazeds.part2.helper.EmpEditConfirmInitHelper;
	import bz.yfw.example.s3blazeds.part2.model.convert.EmpConverter;
	import bz.yfw.example.s3blazeds.part2.model.ro.EmpRemotoObject;
	import bz.yfw.example.s3blazeds.part2.service.EmpEditEntryService;
	
	import org.seasar.akabana.yui.framework.ns.handler;
	import org.seasar.akabana.yui.framework.ns.helper;
	import org.seasar.akabana.yui.service.event.FaultStatus;
	import org.seasar.akabana.yui.service.ns.rpc_fault;
	import org.seasar.akabana.yui.service.ns.rpc_result;
	
	/**
	 * 社員編集確認〜登録Behavior
	 * @author tokufxug http://twitter.com/tokufxug
	 */ 
	public class EmpEditConfirmEntryBehavior
	{
		public var helper:EmpEditConfirmInitHelper;
		public var empEditEntryService:EmpEditEntryService;
		
		handler function btnEntry_click():void {
			var model:EmpRemotoObject = EmpConverter.convertRemotoObject(helper.empViewModel);
			empEditEntryService.entry(model).setResponder(this);
		}
		
		rpc_result function empEditEntryService_entry():void {
			
		}
		
		rpc_fault function empEditEntryService_ping(fault:FaultStatus):void {
		}
	}
}